#pragma once

#include <map>
#include <string>

using namespace std;
struct _userinfo
{
	int _uid;
	string strName;
	bool _sex;
};

class CUser
{
public:
	CUser(void);
	~CUser(void);

public:
	int AddUser(_userinfo *ui);
	int DeleteUser(string name);
	int SearchUser(string name);
	int GetUserAccount();

public:
	void SetSelfName(string me);
	void GetSelfInfo(_userinfo*);

private:
	std::map<string, _userinfo*> m_mapUser;
	typedef std::map<string, _userinfo*>::value_type UserType;

private:
	_userinfo m_uiMe;
};
